package com.xian.dynasties.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xian.dynasties.mapper.TDynastiesMapper;
import com.xian.dynasties.domain.TDynasties;
import com.xian.dynasties.service.ITDynastiesService;

/**
 * 朝代信息Service业务层处理
 * 
 * @author jimihua
 * @date 2025-03-31
 */
@Service
public class TDynastiesServiceImpl implements ITDynastiesService 
{
    @Autowired
    private TDynastiesMapper tDynastiesMapper;

    /**
     * 查询朝代信息
     * 
     * @param id 朝代信息主键
     * @return 朝代信息
     */
    @Override
    public TDynasties selectTDynastiesById(Long id)
    {
        return tDynastiesMapper.selectTDynastiesById(id);
    }

    /**
     * 查询朝代信息列表
     * 
     * @param tDynasties 朝代信息
     * @return 朝代信息
     */
    @Override
    public List<TDynasties> selectTDynastiesList(TDynasties tDynasties)
    {
        return tDynastiesMapper.selectTDynastiesList(tDynasties);
    }

    /**
     * 新增朝代信息
     * 
     * @param tDynasties 朝代信息
     * @return 结果
     */
    @Override
    public int insertTDynasties(TDynasties tDynasties)
    {
        return tDynastiesMapper.insertTDynasties(tDynasties);
    }

    /**
     * 修改朝代信息
     * 
     * @param tDynasties 朝代信息
     * @return 结果
     */
    @Override
    public int updateTDynasties(TDynasties tDynasties)
    {
        return tDynastiesMapper.updateTDynasties(tDynasties);
    }

    /**
     * 批量删除朝代信息
     * 
     * @param ids 需要删除的朝代信息主键
     * @return 结果
     */
    @Override
    public int deleteTDynastiesByIds(Long[] ids)
    {
        return tDynastiesMapper.deleteTDynastiesByIds(ids);
    }

    /**
     * 删除朝代信息信息
     * 
     * @param id 朝代信息主键
     * @return 结果
     */
    @Override
    public int deleteTDynastiesById(Long id)
    {
        return tDynastiesMapper.deleteTDynastiesById(id);
    }
}
